/*
 * @Description: 登录相关接口
 * @Author: wangqi
 * @Date: 2022-04-19 13:52:20
 * @LastEditTime: 2022-04-19 17:09:07
 */
import { request } from '@/utils/request';

// 登录
export function login(data?: API.LoginParams) {
  return request(
    {
      url: 'login',
      method: 'post',
      data,
    },
    {
      isGetDataDirectly: false,
    },
  );
}

//获取验证码
export function getImageCaptcha(params?: API.CaptchaParams) {
  return request<API.CaptchaResult>({
    url: 'captcha/img',
    method: 'get',
    params,
  });
}
